package com.jeecms.wicool.manager.activities.impl;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.jeecms.cms.entity.main.CmsUser;
import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.dao.activities.SpecialInfoDao;
import com.jeecms.wicool.entity.activities.SpecialInfo;
import com.jeecms.wicool.manager.activities.SpecialInfoMng;

public class SpecialInfoMngImpl implements SpecialInfoMng {

	@Autowired
	private SpecialInfoDao dao;
	
	@Override
	public Pagination getPage(String title, Date publishTime, int pageNo,
			int pageSize) {
		// TODO Auto-generated method stub
		Pagination page= dao.getPage(title, publishTime, pageNo, pageSize);
		return page;
	}

	@Override
	public SpecialInfo findById(Integer id) {
		// TODO Auto-generated method stub
		return dao.findById(id);
	}

	@Override
	public SpecialInfo update(SpecialInfo bean) {
		// TODO Auto-generated method stub
		
		return dao.update(bean);
	}

	@Override
	public SpecialInfo save(SpecialInfo bean) {
		// TODO Auto-generated method stub
		return dao.save(bean);
	}

	@Override
	public SpecialInfo deleteById(Integer id) {
		// TODO Auto-generated method stub
		return dao.deleteById(id);
	}

	@Override
	public ArrayList<SpecialInfo> deleteByIds(Integer[] ids) {
		// TODO Auto-generated method stub
		return dao.deleteByIds(ids);
	}

	@Override
	public List<SpecialInfo> getAll(CmsUser user) {
		// TODO Auto-generated method stub
		return dao.getAll(user);
	}

	
}
